package edu.ts.crowdfunding.product.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import edu.ts.crowdfunding.product.domain.Project;
import edu.ts.crowdfunding.product.service.ProjectService;
import edu.ts.crowdfunding.product.mapper.ProjectMapper;
import edu.ts.crowdfunding.product.vo.ProjectVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Lenovo
 * @description 针对表【project】的数据库操作Service实现
 * @createDate 2025-06-25 08:44:48
 */
@Service
public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project>
        implements ProjectService {
    @Autowired
    private ProjectMapper projectMapper;

    @Override
    public List<Project> listRef(ProjectVo projectVo) {
        return projectMapper.selectProjectRef(projectVo);
    }

    @Override
    public Project getProjectRef(int id) {
        return projectMapper.selectProjectByIdRef(id);
    }
}




